<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of admin
 *
 * @author Spyros
 */
class AdminsController extends AppController {

    var $name = 'Admins';
    var $uses = array();

    function index() {
        if ($this->Auth->user('is_admin') != 1) {
            $this->redirect('/');
        }
    }

}

?>
